package com.pactera.madp.cp.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 通过esb与微信银行交互配置类
 */
@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "madp.esb")
@ConditionalOnExpression("!'${madp.esb}'.isEmpty()")
public class EsbSocketClientConfig {

    private String host;
    private Integer port;
    private Integer connectTimeout;
    private Integer reqTimeout;
    private String serviceCode;
    private String serviceScene;
    private String consumerId;

}
